const express = require('express')
const app = express()
// 创建路由
app.get('/:id', (req, res) => {
  // 获取路径参数
  console.log(req.params.id)
  // 获取查询字符串
  console.log(req.query)
  res.end('hellw')
})

app.listen(3000, () => {
  console.log('启动成功！')
})